Integrand size = 25, antiderivative size = 89 \[ \int \frac {\sqrt {d \tan (e+f x)}}{a+a \tan (e+f x)} \, dx=-\frac {\sqrt {d} \arctan \left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{a f}-\frac {\sqrt {d} \arctan \left (\frac {\sqrt {d}-\sqrt {d} \tan (e+f x)}{\sqrt {2} \sqrt {d \tan (e+f x)}}\right )}{\sqrt {2} a f} \]
[Out]
Time = 0.22 (sec) , antiderivative size = 89, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3653, 3613, 211, 3715, 65} \[ \int \frac {\sqrt {d \tan (e+f x)}}{a+a \tan (e+f x)} \, dx=-\frac {\sqrt {d} \arctan \left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{a f}-\frac {\sqrt {d} \arctan \left (\frac {\sqrt {d}-\sqrt {d} \tan (e+f x)}{\sqrt {2} \sqrt {d \tan (e+f x)}}\right )}{\sqrt {2} a f} \]
[In]
[Out]
Rule 65
Rule 211
Rule 3613
Rule 3653
Rule 3715
Rubi steps \begin{align*} \text {integral}& = \frac {\int \frac {a d+a d \tan (e+f x)}{\sqrt {d \tan (e+f x)}} \, dx}{2 a^2}-\frac {1}{2} d \int \frac {1+\tan ^2(e+f x)}{\sqrt {d \tan (e+f x)} (a+a \tan (e+f x))} \, dx \\ & = -\frac {d \text {Subst}\left (\int \frac {1}{\sqrt {d x} (a+a x)} \, dx,x,\tan (e+f x)\right )}{2 f}-\frac {d^2 \text {Subst}\left (\int \frac {1}{2 a^2 d^2+d x^2} \, dx,x,\frac {a d-a d \tan (e+f x)}{\sqrt {d \tan (e+f x)}}\right )}{f} \\ & = -\frac {\sqrt {d} \arctan \left (\frac {\sqrt {d}-\sqrt {d} \tan (e+f x)}{\sqrt {2} \sqrt {d \tan (e+f x)}}\right )}{\sqrt {2} a f}-\frac {\text {Subst}\left (\int \frac {1}{a+\frac {a x^2}{d}} \, dx,x,\sqrt {d \tan (e+f x)}\right )}{f} \\ & = -\frac {\sqrt {d} \arctan \left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{a f}-\frac {\sqrt {d} \arctan \left (\frac {\sqrt {d}-\sqrt {d} \tan (e+f x)}{\sqrt {2} \sqrt {d \tan (e+f x)}}\right )}{\sqrt {2} a f} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(283\) vs. \(2(89)=178\).
Time = 0.37 (sec) , antiderivative size = 283, normalized size of antiderivative = 3.18 \[ \int \frac {\sqrt {d \tan (e+f x)}}{a+a \tan (e+f x)} \, dx=-\frac {8 d^{3/2} \arctan \left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )+4 \left (-d^2\right )^{3/4} \arctan \left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt [4]{-d^2}}\right )+2 \sqrt {2} d^{3/2} \arctan \left (1-\frac {\sqrt {2} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )-2 \sqrt {2} d^{3/2} \arctan \left (1+\frac {\sqrt {2} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )-4 \left (-d^2\right )^{3/4} \text {arctanh}\left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt [4]{-d^2}}\right )+\sqrt {2} d^{3/2} \log \left (\sqrt {d}+\sqrt {d} \tan (e+f x)-\sqrt {2} \sqrt {d \tan (e+f x)}\right )-\sqrt {2} d^{3/2} \log \left (\sqrt {d}+\sqrt {d} \tan (e+f x)+\sqrt {2} \sqrt {d \tan (e+f x)}\right )}{8 a d f} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(303\) vs. \(2(72)=144\).
Time = 0.94 (sec) , antiderivative size = 304, normalized size of antiderivative = 3.42
method | result | size |
derivativedivides | \(\frac {2 d^{2} \left (-\frac {\arctan \left (\frac {\sqrt {d \tan \left (f x +e \right )}}{\sqrt {d}}\right )}{2 d^{\frac {3}{2}}}+\frac {\frac {\left (d^{2}\right )^{\frac {1}{4}} \sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{8 d}+\frac {\sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{8 \left (d^{2}\right )^{\frac {1}{4}}}}{2 d}\right )}{f a}\) | \(304\) |
default | \(\frac {2 d^{2} \left (-\frac {\arctan \left (\frac {\sqrt {d \tan \left (f x +e \right )}}{\sqrt {d}}\right )}{2 d^{\frac {3}{2}}}+\frac {\frac {\left (d^{2}\right )^{\frac {1}{4}} \sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{8 d}+\frac {\sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{8 \left (d^{2}\right )^{\frac {1}{4}}}}{2 d}\right )}{f a}\) | \(304\) |
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 211, normalized size of antiderivative = 2.37 \[ \int \frac {\sqrt {d \tan (e+f x)}}{a+a \tan (e+f x)} \, dx=\left [\frac {\sqrt {2} \sqrt {-d} \log \left (\frac {d \tan \left (f x + e\right )^{2} + 2 \, \sqrt {d \tan \left (f x + e\right )} {\left (\sqrt {2} \tan \left (f x + e\right ) - \sqrt {2}\right )} \sqrt {-d} - 4 \, d \tan \left (f x + e\right ) + d}{\tan \left (f x + e\right )^{2} + 1}\right ) + 2 \, \sqrt {-d} \log \left (\frac {d \tan \left (f x + e\right ) - 2 \, \sqrt {d \tan \left (f x + e\right )} \sqrt {-d} - d}{\tan \left (f x + e\right ) + 1}\right )}{4 \, a f}, \frac {\sqrt {2} \sqrt {d} \arctan \left (\frac {\sqrt {d \tan \left (f x + e\right )} {\left (\sqrt {2} \tan \left (f x + e\right ) - \sqrt {2}\right )}}{2 \, \sqrt {d} \tan \left (f x + e\right )}\right ) - 2 \, \sqrt {d} \arctan \left (\frac {\sqrt {d \tan \left (f x + e\right )}}{\sqrt {d}}\right )}{2 \, a f}\right ] \]
[In]
[Out]
\[ \int \frac {\sqrt {d \tan (e+f x)}}{a+a \tan (e+f x)} \, dx=\frac {\int \frac {\sqrt {d \tan {\left (e + f x \right )}}}{\tan {\left (e + f x \right )} + 1}\, dx}{a} \]
[In]
[Out]
none
Time = 0.35 (sec) , antiderivative size = 112, normalized size of antiderivative = 1.26 \[ \int \frac {\sqrt {d \tan (e+f x)}}{a+a \tan (e+f x)} \, dx=\frac {\frac {d^{2} {\left (\frac {\sqrt {2} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} \sqrt {d} + 2 \, \sqrt {d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt {d}}\right )}{\sqrt {d}} + \frac {\sqrt {2} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} \sqrt {d} - 2 \, \sqrt {d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt {d}}\right )}{\sqrt {d}}\right )}}{a} - \frac {2 \, d^{\frac {3}{2}} \arctan \left (\frac {\sqrt {d \tan \left (f x + e\right )}}{\sqrt {d}}\right )}{a}}{2 \, d f} \]
[In]
[Out]
\[ \int \frac {\sqrt {d \tan (e+f x)}}{a+a \tan (e+f x)} \, dx=\int { \frac {\sqrt {d \tan \left (f x + e\right )}}{a \tan \left (f x + e\right ) + a} \,d x } \]
[In]
[Out]
Time = 2.89 (sec) , antiderivative size = 103, normalized size of antiderivative = 1.16 \[ \int \frac {\sqrt {d \tan (e+f x)}}{a+a \tan (e+f x)} \, dx=\frac {\sqrt {2}\,\sqrt {d}\,\left (2\,\mathrm {atan}\left (\frac {\sqrt {2}\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}}{2\,\sqrt {d}}\right )+2\,\mathrm {atan}\left (\frac {\sqrt {2}\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}}{2\,\sqrt {d}}+\frac {\sqrt {2}\,{\left (d\,\mathrm {tan}\left (e+f\,x\right )\right )}^{3/2}}{2\,d^{3/2}}\right )\right )}{4\,a\,f}-\frac {\sqrt {d}\,\mathrm {atan}\left (\frac {\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}}{\sqrt {d}}\right )}{a\,f} \]
[In]
[Out]